package com.moetube.user.dao;

import com.moetube.user.pojo.Sign;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;

public interface SignMapper extends Mapper<Sign> {

    @Select("SELECT username,COUNT,continue_sign AS continueSign,update_time AS updateTime FROM tb_sign WHERE username = #{username}")
    Sign findSignByUsername(@Param("username") String username);

    @Select("SELECT update_time FROM tb_sign WHERE username = #{username}")
    Date findDateByUsername(@Param("username") String username);
}

